package cn.sunlelin.educationserver.mapper;

import cn.sunlelin.educationserver.entity.Course;
import cn.sunlelin.educationserver.entity.Search;

import java.util.List;
import java.util.Map;

public interface CourseMapper {
    public void createCourse(Course course);
    public List<Map<String, Object>> findAll();
    public Map<String,Object> selectCourseById(Integer courseId);
    public List<Map<String,Object>> selectCourseByCoursetypeId(Integer coursetypeId);
    public List<Map<String,Object>> selectCourseByFathertypeId(Integer fathertypeId);

    public List<Map<String,Object>> selectCourseByUserId(Integer userId);
    public List<Map<String,Object>> selectCourseBySearch(Search search);
    public void updateCourse(Course course);
    public void updateScore(Course course);
    public void addAttendNum(Course course);
    public void deleteCourse(Course course);
}
